import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '任务名称',
    model: 'name',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '类型',
    model: 'type',
    placeholder: '请选择',
    type: 'select',
    disabled: true,
    dict: 'timed_task_type',
    message: '请选择类型',
    selectData: []
  },
  {
    label: '医院',
    model: 'hospital',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '科室',
    model: 'departmentName',
    placeholder: '请输入',
    disabled: true,
    // url: '/base/department/list',
    type: 'input'
  },
  {
    label: '医生',
    model: 'doctorName',
    disabled: true,
    // url: '/base/doctor/list',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '调研名称',
    model: 'name',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '调研开始时间',
    model: 'startTime',
    placeholder: '选择时间',
    type: 'beginTime',
    disabled: true,
    timeType: 'datetime',
    setTime: 'startTime',
  },
  {
    label: '调研结束时间',
    model: 'endTime',
    disabled: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    setTime: 'endTime',
  },
  {
    label: '提交时间',
    disabled: true,
    model: 'commitTime',
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    setTime: 'commitTime',
  },
  {
    label: '代表',
    model: 'mrId',
    disabled: true,
    placeholder: '请输入',
    url: '/base/medicalRepresentative/list',
    type: 'select',
    parm: {
      isDeleted: 0,
      status: 6
    },
  },
  {
    label: '代理商',
    disabled: true,
    model: 'agencyName',
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    dict: 'task_status_all',
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
  {
    label: '品种',
    model: 'drugName',
    // url: '/base/drug/list',
    placeholder: '请选择',
    type: 'input',
    disabled: true,
    message: '请选择品种',
    selectData: []
  },
  {
    label: '调研对象',
    model: 'researchObject',
    placeholder: '请选择',
    type: 'select',
    dict: 'rese_arch_Object',
    disabled: true,
    message: '请选择调研对象',
    selectData: []
  },
  // {
  //   label: '品种所属',
  //   model: 'drugOwner',
  //   placeholder: '请选择',
  //   disabled: true,
  //   type: 'select',
  //   dict: 'variety_mana_owner',
  //   selectData: []
  // },
  {
    label: '竞品名称',
    model: 'competeDrugName',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '生产厂家',
    model: 'competeFactory',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '城市',
    model: 'patientCity',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  // {
  //   label: '患者姓名',
  //   model: 'patientName',
  //   disabled: true,
  //   placeholder: '请输入',
  //   type: 'input'
  // },
  {
    label: '患者年龄',
    model: 'patientAge',
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
])
interface Parmes {
  status?: number
  billingStatus?: number
  accountTime?: any
  setTime?: any
  [propName: string]: any
}
const datas = ref<Parmes>({
  status: 1,
  billingStatus: 1,
  accountTime: new Date(),
  setTime: new Date(),
})
export default { bill, datas }